import { createRouter, createWebHistory } from 'vue-router'

export const constantRoutes = [
    {
        path: "/",
        component: () => import("@/views/main/index.vue"),
        hidden: false,
    },
    {
        path: "/tunnel-overview",
        component: () => import("@/views/tunnel/index.vue"),
        hidden: false,
    },
    {
        path: "/guardpost",
        component: () => import("@/views/guardpost/index.vue"),
        hidden: false,
    }
];

export const dynamicRoutes = [
    {
    //   path: "/system/user-auth",
    //   component: Layout,
    //   hidden: true,
    //   permissions: ["system:user:edit"],
    //   children: [
    //     {
    //       path: "role/:userId(\\d+)",
    //       component: () => import("@/views/system/user/role"),
    //       name: "UserRole",
    //       meta: { title: "用户角色", icon: "user" },
    //     },
    //   ],
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes: constantRoutes.concat(dynamicRoutes),
});

export default router;